<!-- 分类页 -->

@extends('layout')

@section('content')
<div class="archive-title">
    <h2 class="category-icon">分类</h2>
    <div class="archiveslist archive-float clearfix">
        @foreach ($cates as $cate)
        <li>
            <a class="archive-list-link" href="/category/{{ $cate->id }}" title="{{ $cate->name }}">{{ $cate->name }}<sup>{{ $cate->articles_count }}</sup></a>
        </li>
        @endforeach
    </div>
</div>

<div id="main" class="all-list-box">
    @foreach ($articles as $article)
    <section class="post" itemscope itemprop="blogPost">

        <a href="/article/{{ $article->id }}" title="{{ $article->title }}" itemprop="url">

            <h1 itemprop="name">{{ $article->title }}</h1>

            <p itemprop="description">
                {{ $article->description }}
            </p>

            <time datetime="{{ $article->created_at }}" itemprop="datePublished">{{ $article->created_at }}</time>
        </a>
    </section>
    @endforeach


</div>

@endsection